package com.zzmx.springboot.atomikos.service.impl;

import com.zzmx.springboot.atomikos.entity.NewsCategory;
import com.zzmx.springboot.atomikos.mapper.test1.NewsCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuxc
 * @Description:
 * @create 2018-04-20 9:31
 **/
@Service
public class NewsCategoryServiceImpl {

    @Autowired
    private NewsCategoryMapper mapper;

    public NewsCategory findById(NewsCategory newsCategory){
        return mapper.findById(newsCategory);
    }


    public List<NewsCategory> list(NewsCategory newsCategory){
        return mapper.list(newsCategory);
    }


    public int count(NewsCategory newsCategory){
        return mapper.count(newsCategory);
    }

    public int insert(NewsCategory newsCategory){
        return mapper.insert(newsCategory);
    }

    public int update(NewsCategory newsCategory){
        return mapper.update(newsCategory);
    }

    public int updateState(NewsCategory newsCategory){
        return mapper.updateState(newsCategory);
    }
}
